#!/bin/bash
# 
# gsas_current_value - extract the current value of a parameter from the PVE file
# (C) Sven Vogel, sven@lanl.gov
#
# call
#
# gsas_current_value <parameter>
#
# parameter - a parameter string to be found in the PVE file
#

# Check syntax
# nothing to do

grep "EXPR NPHAS" `cat GSAS_EXP`.EXP | awk '{print $3+$4+$5+$6+$7+$8+$9+$10+$11}' > temp.txt
# output number of phases, so the calling process can read it
cat temp.txt


